package com.aiti.lulian.controller;

import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.dto.LuLianMatterDto;
import com.aiti.lulian.entity.LuLianMatter;
import com.aiti.lulian.entity.LuLianSourcingDemand;
import com.aiti.lulian.service.ILuLianMatterService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName LuLianMatterController
 * @Description
 * @Author diaozhende
 * @Date 2024/6/4 0004 15:42
 */
@RestController
@RequestMapping("matter")
public class LuLianMatterController {


    @Resource
    private ILuLianMatterService matterService;

    /**
     * 多参数查询
     *
     * @param matterDto 查询参数
     * @return com.aiti.base.core.utils.message.Message
     * @date 2024/6/4 0004 15:43
     * @author diaozhende
     */
    @GetMapping("/queryByParams")
    public Message queryByParams(LuLianMatterDto matterDto) {
        List<LuLianMatter> matterList = matterService.queryByParams(matterDto);
        return Message.success(matterList);
    }

}
